<?php $this->load->view('home/layout/header') ?>
<header class="my-head flex">
	<div class="my-return">
		<a href="<?php echo site_url('home/ucenter/baseInfoSet'); ?>">
			<i class="iconfont icon-zuojiantou"></i>
		</a>
	</div>
	<div class="my-name">
		常用信息
	</div>
</header>
<section class="often-text widthMax">
	<ul class="often-opt flex">
		<li>
			<a href="<?php echo site_url('home/passenger/passengerList'); ?>">常用联系人</a>
		</li>
		<li class="active">
			<a href="javascript:;">收货地址</a>
		</li>
	</ul>
	<dl>
		<dt>
			<a href="<?php echo site_url('home/address/addressInfoAdd'); ?>" class="flex">
				<p class="flex flex-1">
					<i class="iconfont icon-icon--"></i>
					<span class="flex-1">新建收货地址</span>
				</p>
				<i class="often-icon iconfont icon-youjiantou"></i>
			</a>
		</dt>
		<?php if ( $addressList->num_rows() > 0 ) : ?>
		<?php foreach ($addressList->result() as $value) : ?>
		<dd>
			<a href="<?php echo site_url('home/address/addressInfoEdit/' . $value->address_id); ?>" class="flex">
				<div class="often-name flex-1">
					<h6><?php echo $value->receiver_name; ?> <span><?php echo $value->tel; ?></span></h6>
					<p><?php echo $value->province_name.$value->city_name.$value->district_name.$value->detailed; ?></p>
					<p><?php echo $value->code; ?></p>
				</div>
				<i class="often-icon iconfont icon-youjiantou"></i>
			</a>
		</dd>
		<?php endforeach; ?>
		<?php endif; ?>
	</dl>
	
</section>
<?php $this->load->view('home/layout/tip'); ?>
<?php $this->load->view('home/layout/footer'); ?>